<?php

$upcoming = (array) $module->upcoming;

?>

<?php foreach($upcoming as $event): ?>
<hr>
<div>
  <figure class="left">
    <img src="/images/clock-icon.png">
  </figure>
  <div class="left">
    <p><strong><?= NRHCdate($event['begins']) ?></strong><br>
    <?= $event['time'] ?></p>
    <p class="footnote"><?= $event['notes'] ?></p>
  </div>
  <p class="right">
    <a href="<?= wufoo($event['form']) ?>" target="_blank" class="button">Sign Up »</a>
  </p>
</div>
<?php endforeach ?>
